home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 65.zip / BS1 part 65 / DevPac v3.02b.adf / include / devices / keymap.i < prev    next >
Text File  |  1991-11-20  |  2KB  |  72 lines

  1.     IFND    DEVICES_KEYMAP_I
  2. DEVICES_KEYMAP_I    SET    1
  3. **
  4. **    $Filename: devices/keymap.i $
  5. **    $Release: 1.3 $
  6. **
  7. **    keymap.resource definitions and console.device key map definitions 
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.        IFND    EXEC_NODES_I
  14.        INCLUDE    "exec/nodes.i"
  15.        ENDC
  16.        IFND    EXEC_LISTS_I
  17.        INCLUDE    "exec/lists.i"
  18.        ENDC
  19.  
  20.  STRUCTURE  KeyMap,0
  21.    APTR     km_LoKeyMapTypes
  22.    APTR     km_LoKeyMap
  23.    APTR     km_LoCapsable
  24.    APTR     km_LoRepeatable
  25.    APTR     km_HiKeyMapTypes
  26.    APTR     km_HiKeyMap
  27.    APTR     km_HiCapsable
  28.    APTR     km_HiRepeatable
  29.    LABEL km_SIZEOF
  30.  
  31.  STRUCTURE    KeyMapNode,0
  32.     STRUCT  kn_Node,LN_SIZE    ; including name of keymap
  33.     STRUCT  kn_KeyMap,km_SIZEOF
  34.     LABEL   kn_SIZEOF
  35.  
  36. ;------ the structure of keymap.resource
  37.  STRUCTURE    KeyMapResource,0
  38.     STRUCT  kr_Node,LN_SIZE
  39.     STRUCT  kr_List,LH_SIZE    ; a list of KeyMapNodes
  40.     LABEL   kr_SIZEOF
  41.  
  42.  
  43. KCB_NOP        EQU      7
  44. KCF_NOP        EQU      $80
  45.  
  46. KC_NOQUAL   EQU      0
  47. KC_VANILLA  EQU      7          ; note that SHIFT+ALT+CTRL is VANILLA
  48. KCB_SHIFT   EQU      0
  49. KCF_SHIFT   EQU      $01
  50. KCB_ALT        EQU      1
  51. KCF_ALT        EQU      $02
  52. KCB_CONTROL EQU      2
  53. KCF_CONTROL EQU      $04
  54. KCB_DOWNUP  EQU      3
  55. KCF_DOWNUP  EQU      $08
  56. KCB_DEAD    EQU      5        ; may be dead or modified by dead key:
  57. KCF_DEAD    EQU      $20        ;   use dead prefix bytes
  58.  
  59. KCB_STRING  EQU      6
  60. KCF_STRING  EQU      $40
  61.  
  62. ;------ Dead Prefix Bytes
  63. DPB_MOD        EQU    0
  64. DPF_MOD        EQU    $01
  65. DPB_DEAD    EQU    3
  66. DPF_DEAD    EQU    $08
  67.  
  68. DP_2DINDEXMASK    EQU    $0F    ; mask for index for 1st of two dead keys
  69. DP_2DFACSHIFT    EQU    4    ; shift for factor for 1st of two dead keys
  70.  
  71.     ENDC    ; DEVICES_KEYMAP_I
  72.